Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.ecm.platform.video.convert.commandline

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.video.convert.commandline">

  <require>org.nuxeo.ecm.platform.commandline.executor.service.defaultContrib
  </require>

  <extension
    target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent"
    point="command">

    <command name="ffmpeg-info" enabled="true">
      <commandLine>ffprobe</commandLine>
      <parameterString> #{inFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-screenshot" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <!-- It's important to put the -ss option before the -i option for
        faster (though less accurate) seek / skip to position in the input file -->
      <parameterString> -y -ss #{position} -i #{inFilePath} -vframes 1 -f image2 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-screenshot-resize" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <!-- It's important to put the -ss option before the -i option for faster
        (though less accurate) seek / skip to position in the input file.

        The -vframes 1 option tell to take only one screenshot. This is
        necessary as apparent the use of the "-s" option forces ffmpeg to
        switch in "many output files" mode.
      -->
      <parameterString> -y -ss #{position} -i #{inFilePath} -vframes 1 -f image2 -s #{width}x#{height} #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-towebm" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec libvorbis -v 0 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-tomp4" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec libfaac -vcodec libx264 -v 0 #{outFilePath}</parameterString>
      <winParameterString> -i #{inFilePath} -s #{width}x#{height} -vcodec libx264 -v 0 #{outFilePath}</winParameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

    <command name="ffmpeg-toogg" enabled="true">
      <commandLine>ffmpeg</commandLine>
      <parameterString> -i #{inFilePath} -s #{width}x#{height} -acodec libvorbis -v 0 #{outFilePath}</parameterString>
      <installationDirective>You need to install ffmpeg from http://ffmpeg.org (apt-get install ffmpeg)
      </installationDirective>
    </command>

  </extension>

</component>